package sctu.edu.java.year2016.team01.xuhanmei.day20160524.practice4;

/**
 * Created by Administrator on 2016/5/24.
 */
public class InsertString {
    public static void main(String[] args) {
        StringBuilder builder = new StringBuilder("StringBuilder");


        StringBuilder s1 = builder.delete(5, 5);//从第五个字符开始删除零个
        System.out.println("删除指定字符串后：s1=" + s1);


        StringBuilder s2 = builder.delete(5, 10);//从第五个字符开始删除5个字符
        System.out.println("删除指定字符串后：s2=" + s2);
    }
}
